Skip to content

Fix: document the account saved on discovered cloud targets - #3425

Open
HuyPhanNguyen wants to merge 2 commits into
mainfrom
huy/2026/fd-731-azure-discovery-account
Open

Fix: document the account saved on discovered cloud targets#3425
HuyPhanNguyen wants to merge 2 commits into
mainfrom
huy/2026/fd-731-azure-discovery-account

Conversation

@HuyPhanNguyen

@HuyPhanNguyen HuyPhanNguyen commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Background

Cloud target discovery saves the account it authenticated with onto every target it creates, and that account is what Octopus then uses to deploy to the target and run its health checks. The page never said so. It describes Octopus.Azure.Account as an account "to use when discovering cloud targets", which reads like the account is only used for the scan.

FD-731 came in because of that. Someone took the account out of their deployment and couldn't work out why an Azure Web App target still pointed at it, or whether they had to go and change the target themselves. Two other spots on the page steer you wrong: the switch-off instructions stop at "discovery is now off" and never mention existing targets, and the stale-target warning says Octopus removes them automatically. It only does that when a target fails its health checks.

Results

Says where a discovered target's account comes from, and what happens to it when you change or remove the discovery account. Also fixes a broken in-page link.

Fixes FD-731

Before

  • Octopus.Azure.Account and Octopus.Aws.Account read as credentials for the discovery scan only.
  • "Switching off ... cloud target discovery" ends once you delete the variable. Nothing about targets already discovered.
  • "Previously discovered targets" says the target "will simply be updated" without saying what gets replaced.
  • The stale-target warning implies Octopus cleans up: "the old target will become unhealthy and be removed automatically".
  • [Cleaning up unhealthy targets] had no link destination.

After

  • Both variable tables say the account is saved on each discovered target and used for that target's deployments and health checks.
  • Both switch-off sections warn that existing targets keep their account.
  • New "Changing or removing the discovery account" section: rediscovery under a different account updates the target, because the account isn't part of the target name; removing the account switches discovery off, so nothing updates the existing targets; and a target holding an account blocks deleting that account.
  • The auto-removal sentence now says removal only happens on health check failure.
  • Link fixed to #cleaning-up-unhealthy-targets.

Pre-requisites

  • I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
  • I have considered informing or consulting the right people, according to the ownership map.
  • I have considered the appropriate target version for this PR.
  • I have considered appropriate testing for my change.
    • Automated testing / Exploratory testing / Nothing required?
  • I have considered manually testing my changes on a branch instance to check correctness, stability and performance on Octopus Cloud.
  • I have considered safety nets to reduce any time-to-recovery for my change.

…ed targets and used for their deployments and health checks.
@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3425.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@HuyPhanNguyen
HuyPhanNguyen requested a review from a team August 27, 2026 23:06
@HuyPhanNguyen
HuyPhanNguyen marked this pull request as ready for review August 27, 2026 23:06
@HuyPhanNguyen
HuyPhanNguyen enabled auto-merge (squash) August 27, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants